<template>
	<view class="zhengce">
		<text class="zctitle">{{cons.name}}</text>
		<view class="html">
			<view v-html="cons.content"></view>
		</view>
	</text>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				id:[],
				cons:[]
			}
		},
		onLoad(option) {
			this.id = option.id
			console.log(this.id)
		},
		created() {
			let that = this
			let params = {
			  "id":that.id,
			}
			that.pyReq(that.$http.getPolicyDetail,params,function(res){
					  that.cons = res.result
			});
			// let headers={
			// 	  'content-type': 'application/x-www-form-urlencoded',
			// 	  'token': uni.getStorageSync('token')
			// }
			//  uni.request({
			// 	  url: that.$http.getPolicyDetail,
			// 	  method: 'POST',
			// 	  data:params,
			// 	  header:headers,
			// 	  success: (res)=>{
			// 		  console.log(res)
			// 		  that.cons = res.data.result
			// 	  },
			// 	  fail: (err)=>{
			// 		  console.log(err)
			// 	  }
			// })  
		}
	}
</script>

<style>
	.html{
		width: 700upx;
	}
	.zhengce{
		margin: 40upx 30upx;
	}
	.zhengce text{
		display: block;
		font-size: 26upx;
		line-height: 40upx;
		margin-top: 20upx;
	}
	.zhengce image{
		margin-top: 30upx;
		width: 680upx;
		height: 340upx;
	}
	.zhengce .zctitle{
		font-size: 30upx;
		font-weight: 700;
		line-height: 40upx;
	}
</style>
